/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package uimigration.mappingtable;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.AbstractEnumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Positionning Type</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see uimigration.mappingtable.MappingtablePackage#getPositionningType()
 * @model
 * @generated
 */
public final class PositionningType extends AbstractEnumerator {
	/**
	 * The '<em><b>Absolute</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Absolute</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ABSOLUTE_LITERAL
	 * @model name="Absolute"
	 * @generated
	 * @ordered
	 */
	public static final int ABSOLUTE = 0;

	/**
	 * The '<em><b>Relative</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>Relative</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RELATIVE_LITERAL
	 * @model name="Relative"
	 * @generated
	 * @ordered
	 */
	public static final int RELATIVE = 1;

	/**
	 * The '<em><b>Absolute</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ABSOLUTE
	 * @generated
	 * @ordered
	 */
	public static final PositionningType ABSOLUTE_LITERAL = new PositionningType(
			ABSOLUTE, "Absolute", "Absolute");

	/**
	 * The '<em><b>Relative</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RELATIVE
	 * @generated
	 * @ordered
	 */
	public static final PositionningType RELATIVE_LITERAL = new PositionningType(
			RELATIVE, "Relative", "Relative");

	/**
	 * An array of all the '<em><b>Positionning Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final PositionningType[] VALUES_ARRAY = new PositionningType[] {
			ABSOLUTE_LITERAL, RELATIVE_LITERAL, };

	/**
	 * A public read-only list of all the '<em><b>Positionning Type</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated NOT
	 */
	public static final List<PositionningType> VALUES = Collections
			.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Positionning Type</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PositionningType get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PositionningType result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Positionning Type</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PositionningType getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			PositionningType result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Positionning Type</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static PositionningType get(int value) {
		switch (value) {
		case ABSOLUTE:
			return ABSOLUTE_LITERAL;
		case RELATIVE:
			return RELATIVE_LITERAL;
		}
		return null;
	}

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private PositionningType(int value, String name, String literal) {
		super(value, name, literal);
	}

} //PositionningType
